package com.web.controller;

import com.web.FeignClient.FeignClientService;
import com.web.pojo.Course;
import com.web.pojo.ResultDTO;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/feign")
@CrossOrigin
public class FeignController {
    @Autowired
    private FeignClientService feignClientService;

    @PostMapping
    public ResultDTO addlist(@RequestBody Course course){
        feignClientService.addlist(course);
        return  new ResultDTO(true,"添加成功");
    }

}
